// 导出属于员工的路由规则
import Layout from '@/layout'

export default {

  path: '/permission', // 路径

  name: 'permission', // 给路由规则加一个name

  component: Layout, // 组件
  meta: {
    title: '权限管理', icon: 'eye'
  },
  redirect:'permission/menu',
  children: [
    {
      path: '/permission/menu',
      component: () => import('@/views/permission/components/menu'),
      meta: {
        title: '菜单管理', icon: 'form'
      }
    },
    {
      path: '/permission/role',
      component: () => import('@/views/permission/components/role'),
      meta: {
        title: '角色管理', icon: 'form'
      }
    },
    {
      path: '/permission/user',
      component: () => import('@/views/permission/components/user'),
      meta: {
        title: '用户管理', icon: 'form'
      }
    },
  ]
}

